// import http from '@/utils/http.js'
import request from '@/utils/request'

// request的个人信息获取
export const myUserData = function (params) {
  return request({
    url: `/CUser/${params}`,
    method: 'get',
    isToken: true
  })
}

// 登录方法
export function login (data) {
  return request({
    url: '/CUser/login',
    method: 'post',
    data: data,
    isToken: true
  })
}
